import java.io.Serializable;

public class Test {
    public static void main(String[] args) {
        SimpleGeneric<String> s = new SimpleGeneric<>("first", "second");
        System.out.println(s.getFirst());

        SimpleGeneric<Integer> integer = new SimpleGeneric<>(20, 30);
        System.out.println(integer.getFirst());


        System.out.println("=========================");

        SimpleManyGeneric<String, Integer> map=new SimpleManyGeneric<>();
        map.setKey("张三");
        map.setValue(20);
        System.out.println("姓名:"+map.getKey());
        System.out.println("年龄:"+map.getValue());

        GenericMethod.getMiddle("2", "011", 4,5);

        SimpleGenericImpl simpleGeneric=new SimpleGenericImpl("a","b");
        String test= GenericMethod.getTest("acacs");

        String a = Person.getResult("100");
        System.out.println(a);

        Integer result = Person.getResult(100);
        System.out.println(result);

        Integer one = Person.getOne(100);
        System.out.println(one);

        Person person=new Person();
        Person result1 = Person.getResult(person);
        Person ser = Person.getSer(person);

    }
}
